package com.sora.sora.job.excutor.service;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

@Log4j2
@Component
public class TestJob {

    @XxlJob("testJob")
    public void test() {
        XxlJobHelper.log("test开始记录");
        System.out.println("haha");
        XxlJobHelper.log("test执行完成");
    }
}
